package org.tong.database.mybatis;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.tong.bean.Student;

import java.util.List;

@Mapper
public interface StudentMapper {

    @Select("select * from student")
    public List<Student> queryAllStudents();

    @Insert("insert into student(name)values(#{name})")
    public int insert(Student student);
}
